import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:ichinesereader/controller/knowledgeword.dart';
// import 'package:ichinesereader/exam/widgets/BGExamWidget.dart';

// import '../../exam/dto/assessment.response.dart';

class WordQuestionAnswerDialog extends StatelessWidget {
  WordQuestionAnswerDialog({
    Key? key,
  }) : super(key: key);
  final KnowledgeWordsController controller = Get.find();

  // _getAnswer(value) {
  //   print(value);
  // }

  @override
  Widget build(BuildContext context) {
    // List<QuestionItem>? questionItems = controller.questions != null &&
    //         controller.questions!.length > 0 &&
    //         controller.currWordQuizPage < controller.questions!.length
    //     ? controller.questions![controller.currWordQuizPage]
    //     : null;
    // List<Widget> children = [];
    String? title = '';

    // questionItems?.forEach((questionItem) {
    //   title = questionItem.type;
    //   children.add(BGExamWidget(
    //       questionItem: questionItem,
    //       getAnswer: _getAnswer,
    //       mode: BGExamWidgetMode.Review));
    // });
    return AlertDialog(
      title: Text(title),
      titleTextStyle: TextStyle(
          fontWeight: FontWeight.bold,
          letterSpacing: 1,
          color: Get.isDarkMode ? Color(0xffcccccc) : Colors.black,
          fontSize: 20),
      backgroundColor: Get.isDarkMode
          ? (Color(0xff333333))
          : Color.fromARGB(255, 234, 241, 238),
      shape: RoundedRectangleBorder(
          borderRadius: BorderRadius.all(Radius.circular(20))),
      // content: SingleChildScrollView(
      //     child: Column(
      //   children: children,
      // ))
      content: Text('Hello'),
    );
  }
}
